﻿
@model PaypalPaymentTest.Models.PaymentModel
@{
    ViewBag.Title = "Pay with Paypal";
}
<form id="frm" action="@ViewBag.actionURL">
    @Html.HiddenFor(model => model.cmd)
    @Html.HiddenFor(model => model.business)
    @Html.HiddenFor(model => model.no_shipping)
    @Html.HiddenFor(model => model.@return)
    @Html.HiddenFor(model => model.cancel_return)
    @Html.HiddenFor(model => model.notify_url)
    @Html.HiddenFor(model => model.currency_code)
    @Html.HiddenFor(model => model.item_name)
    @Html.HiddenFor(model => model.amount)
</form>
<p style="text-align: center">
    <h4>Redirecting to Paypal payment page...</h4>
</p>

<script type="text/javascript" language="javascript">
    $(this.document).ready(function () {
        var frm = $("#frm");
        frm.submit();
    });   
</script>